<template>
    <div class="p-card">
        <div class="p-card-top p-msg">飞天{{info.title}}</div>
        <div class="p-card-body">
            <van-image
                src="http://www.wennn.top:8802/static/images/h1.jpg"
            />
            <div class="p-msg p-order"><a href="#">赶紧购买>></a></div>
        </div>
        <!-- <div class="p-card-footer p-msg"> 贵州茅台，飞天</div> -->
    </div>
</template>

<script>

export default {
    name:'ProductCard',
    props:{
        info:Object,
    }
}
</script>

<style scoped>
.p-card{
    width: 50%;
    float: left;
    height: 160px;
    margin-bottom: 50px;
}
.p-card>div{
    width: 90%;
    margin: 0 auto;
}
.p-card-body{
    width: 100%;
    height: 100%;
    position: relative;
}
.p-msg{
    background: #1c3a3c;
    color: #d9edef;
    font-size: 12px;
    padding: 2px;
    border-radius: 4px;
    font-weight: bolder;
}
.p-order{
    position: absolute;
    bottom: 2px;
    right: 5px;
    width: 100px;
}
.p-order a{
    color: #d9edef;
}
</style>